package com.niit.springdemo001.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/thymleaf")
public class ThymleafController {
    @RequestMapping("/hello")
    public String sayHello(Model model){
        model.addAttribute("helloMessage","Hello,this is Monday!!!");
        return "hello";
    }
}
